﻿//// Array.isArray
//if (!Array.isArray) {
//    Array.isArray = function (arg) {
//        return Object.prototype.toString.call(arg) === '[object Array]';
//    };
//}


//// Object.create
//if (typeof Object.create != 'function') {
//    Object.create = (function () {
//        var Temp = function () { };
//        return function (prototype) {
//            if (arguments.length > 1) {
//                throw Error('Second argument not supported');
//            }
//            if (typeof prototype != 'object') {
//                throw TypeError('Argument must be an object');
//            }
//            Temp.prototype = prototype;
//            var result = new Temp();
//            Temp.prototype = null;
//            return result;
//        };
//    })();
//}


//// Object.getPrototypeOf
//if (typeof Object.getPrototypeOf !== "function") {
//    if (typeof "test"["__proto__"] === "object") {
//        Object.getPrototypeOf = function (object) {
//            return object.__proto__;
//        };
//    } else {
//        Object.getPrototypeOf = function (object) {
//            // May break if the constructor has been tampered with
//            return object.constructor.prototype;
//        };
//    }
//}


document.createElement('sustainalytics-pager');
document.createElement('sustainalytics-lrtm');


// console
(function () {

    var alertFallback = true;
    if (typeof console === "undefined" || typeof console.log === "undefined") {
        console = {};
        if (alertFallback) {
            console.log = function (msg) {
                //alert(msg);
            };
        } else {
            console.log = function () { };
        }
    }

})();
